# -*- coding: utf8 -*-

from book.models import *

def create_shop(name,tele):
    count = Shop.gql("WHERE name = :1", name).count()
    if count > 0:
        return False
    shop = Shop(name = name,telephone = tele)
    shop.put()
    return shop